<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.topinfo.component.base.common.CacheConfig" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<script>    if (top.location != self.location) {        top.location = self.location    }</script>
<html class="fb-ui-theme-blue">
<head>
    <style>
        html {
            visibility: hidden;
        }
    </style>
    <meta charset="UTF-8">
    <title><%=CacheConfig.getSysName()%></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge; chrome=1"/>
    <meta name="renderer" content="webkit">
    <%@include file="/WEB-INF/jsp/common/meta.jsp" %>
    <style>html {visibility: hidden;}</style>
    <link href="<%=request.getContextPath()%>/resource/fb-classic/css/layout/layout.min.css" rel="stylesheet">
</head>
<body>

<div class="ui-layout">
    <div class="ui-layout-header">

        <div class="ui-layout-header-wrap">
            <h1 class="logo">
                <a>jpx</a>
            </h1>

            <ul class="ui-layout-header-nav">
            </ul>

            <div class="ui-layout-header-user">
                <div class="ui-layout-header-user-avatar">
                </div>
                <p class="ui-layout-header-user-info">
                    <span class="ui-layout-header-user-name">你好，<shiro:principal property="userName"/></span>
                    <a target="_blank" href="/download/guide.doc" class="ui-layout-header-user-notebook">用户手册</a>
                </p>

                <div class="ui-layout-header-user-oper">
                    <a href="#" id="J_modifyPasswordApp" class="ui-layout-header-user-pas">修改密码</a>
                    <a id="J_login_out" href="#" class="ui-layout-header-user-logout">退出系统</a>
                </div>
            </div>
        </div>

    </div>

    <div class="ui-layout-header-sub">
        <div class="ui-layout-header-sub-shadow"></div>
    </div>
    <div class="ui-layout-header-nav">
        <ul>Loading...</ul>
    </div>

    <div class="ui-layout-body">

        <div class="ui-layout-west">

            <div class="ui-layout-west-tab">
                <a href="javascript:;" class="first active" data-show="content">菜单</a>
                <a href="javascript:;" data-show="notification">个人</a>
            </div>

            <div class="ui-layout-west-header">
                <span class="ui-layout-west-header-text">功能菜单</span>
                <a class="ui-layout-west-header-button" href="javascript:;"><em
                        class="ui-layout-west-header-button-icon"></em></a>
            </div>

            <div id="notification">

            </div>

            <div class="ui-layout-west-content">
                Loading...

            </div>

        </div>


        <div class="ui-layout-east">
            <div class="ui-layout-east-tab">
                <div class="ui-layout-east-tab-bar">
                    <ul></ul>
                </div>
                <div class="ui-layout-east-tab-container"></div>
            </div>
        </div>
        <div style="clear:both"></div>
    </div>
    <div>
        当前版本：<%=CacheConfig.getProperty("project.system.version")%>
    </div>
</div>

<%@include file="/WEB-INF/jsp/common/extra.jsp" %>
<%@include file="/WEB-INF/jsp/common/fb.jsp" %>
<script>if (window != top)top.location.href = location.href; </script>
<script>
    fb.use(["_fbClassic_/js/layout/layout2"], function (layout) {
        firebird.data.set("system.title", "<%=CacheConfig.getSysName()%>");
        firebird.data.set("fb.theme", "skyblue_main3");

        layout.url.logout = GLOBAL_CONFIG.contextPath + "/security/permission/logout";
        layout.init();

        layout.tab.add({
            id: "system_portal_1",
            url: "/fb-classic/portal/index.jsp",
            name: "首页",
            icon: "/resource/fb-classic/img/menu/house.png",
            close: false
        });

        layout.west.width = 186;
        layout.west.show = true;
        //登录首次隐藏左侧菜单
//        var time = 0;
//        layout.tab.onRender = function (id) {
            //第一次，首页加载，什么也不做
//            if (time > 0) {
                //左侧菜单中动态显示一次
//                if (time == 0) {
//                    $(".ui-layout-toggler-west").click();
//                }
//            }
//            time++;
//        };
        fb.app("mainApp", function () {
            Firebird.create("mainApp");
        });
    });
</script>
</body>
</html>